<?php

/*

  Action	$5

  +1 Card; +2 Actions, +$1.

 */

class Bazaar extends Card implements iAction, iKingdom, iSeaside {

    public function __construct() {
        parent::__construct("Bazaar", 5);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+1 Card",
            "+2 Actions",
            "+$1");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addActions(2);
        $game->addMoney(new Price(1));
        $drawed_cards = $game->drawCards(1);
         ScreenDisplay::addScreenMessage($game, true, "get +2 action, +1$ and draw " . nicePrint($drawed_cards), "gets +2 action, +1$ and  draws " . sizeof($drawed_cards) . " cards");
		 $game->cardActionFinished();
        return true;
    }

}

?>